package com.zslibrary.Enum;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import androidx.annotation.IntDef;

public class StateDefine{
    public static final int STATE_NONE=0;
    public static final int STATE_IDLE=1;
    public static final int STATE_INIT=2;
    public static final int STATE_GATE_QUERY=3;
    public static final int STATE_BUSY=4;
    public static final int STATE_ERROR=-1;
    public static final int STATE_RECONNECT=5;
    public static final int STATE_WORKING=6;
    public static final int STATE_PAUSE=7;

    @IntDef(value= {
            STATE_NONE,
            STATE_IDLE,
            STATE_INIT,
            STATE_GATE_QUERY,
            STATE_BUSY,
            STATE_ERROR,
            STATE_RECONNECT,
            STATE_WORKING,
            STATE_PAUSE
    })

    @Retention(RetentionPolicy.SOURCE)
    public @interface State{}

}
